home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource4
/
223_01
/
calloc.c
< prev
next >
Wrap
Text File
|
1979-12-31
|
512b
|
13 lines
#define NOCCARGC /* no argument count passing */
#include stdio.h
/*
** Cleared-memory allocation of n items of size bytes.
** n = Number of items to allocate space for.
** size = Size of the items in bytes.
** Returns the address of the allocated block,
** else NULL for failure.
*/
calloc(n, size) char *n, *size; {
return (Ualloc(n*size, YES));
}